package com.qingcheng.service.order;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.order.Order;
<<<<<<< HEAD
import com.qingcheng.pojo.order.OrderIterms;
=======
import com.qingcheng.pojo.order.OrderItem;
>>>>>>> origin/jtt

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String, Object> searchMap);


    public PageResult<Order> findPage(Map<String, Object> searchMap, int page, int size);


    public Order findById(String id);


    public Map<String,Object> add(Order order);


    public void update(Order order);


    public void delete(String id);
    
    /**
     * 修改订单状态
     * @param orderId
     * @param transactionId
     */
<<<<<<< HEAD
    public void updatePayStatus(String orderId,String transactionId );
    
    /**
     * 根据订单id查询订单详情
     * @param id 订单id
     * @return 此订单的所有数据 
     */
    OrderIterms findOrderItemsById(String id); 
=======
    public void updatePayStatus(String orderId, String transactionId);

    /**
     * 合并订单 返回合并结果 0代表成功 1代表失败 String代表错误信息
     * */
    public Map<Integer,String> mergeOrder(String orderId1, String orderId2);

<<<<<<< HEAD
>>>>>>> origin/jgz
=======

<<<<<<< HEAD
    public void overTime();
>>>>>>> origin/zzh
=======
    public void split(List<OrderItem> orderItemList);

    /**
     * 关闭订单
     */
    public void shutDownOrder(String orderId);

<<<<<<< HEAD
>>>>>>> origin/jtt
=======
    /**根据ID查询未发货的订单
     *
     * @param searchMap
     * @return
     */
    public List<Order> findStatusById(Map<String, Object> searchMap);

    /**修改订单日志
     *
     * @param orderList
     */
    public void updateOrderLog(List<Order> orderList);

>>>>>>> origin/zzy
}
